home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Basic Source Code
/
Visual Basic Source Code.iso
/
vbsource
/
meterbar
/
form1.frm
< prev
next >
Wrap
Text File
|
1995-09-06
|
4KB
|
104 lines
VERSION 2.00
Begin Form Form1
BackColor = &H00C0C0C0&
Caption = "Meter Bar Demo"
ClientHeight = 3015
ClientLeft = 1095
ClientTop = 1485
ClientWidth = 3930
Height = 3420
Left = 1035
LinkTopic = "Form1"
ScaleHeight = 3015
ScaleWidth = 3930
Top = 1140
Width = 4050
Begin MeterBar MeterBar4
BackColor = &H00FFFFFF&
BorderStyle = 2 'Three D
FontBold = -1 'True
FontItalic = -1 'True
FontName = "MS Sans Serif"
FontSize = 12
FontStrikethru = 0 'False
FontUnderline = 0 'False
ForeColor = &H000000FF&
Height = 375
Left = 1560
Orientation = 1 'Right to left
Position = 1
Range = 150
Top = 1200
Width = 2295
End
Begin MeterBar MeterBar3
BackColor = &H00FFFFFF&
BorderStyle = 2 'Three D
ForeColor = &H00FF0000&
Height = 375
Left = 1560
Orientation = 0 'Left to right
Position = 1
Range = 100
Top = 720
Width = 2295
End
Begin MeterBar MeterBar2
BackColor = &H00FFFFFF&
BorderStyle = 2 'Three D
FontBold = 0 'False
FontItalic = 0 'False
FontName = "MS Serif"
FontSize = 8.25
FontStrikethru = 0 'False
FontUnderline = 0 'False
ForeColor = &H00008080&
Height = 2175
Left = 840
Orientation = 3 'Top to bottom
Position = 1
Range = 50
Top = 720
Width = 555
End
Begin MeterBar MeterBar1
BackColor = &H00FFFFFF&
BorderStyle = 2 'Three D
FontBold = -1 'True
FontItalic = 0 'False
FontName = "MS Sans Serif"
FontSize = 8.25
FontStrikethru = 0 'False
FontUnderline = -1 'True
ForeColor = &H00800080&
Height = 2175
Left = 120
Orientation = 2 'Bottom to top
Position = 1
Range = 200
Top = 720
Width = 555
End
Begin Timer Timer1
Interval = 250
Left = 3420
Top = 2520
End
Begin Label Label1
BackColor = &H00C0C0C0&
Caption = "The bar can move from left to right, bottom to top, right to left or top to bottom."
Height = 495
Left = 120
TabIndex = 0
Top = 120
Width = 3675
End
End
Sub Timer1_Timer ()
If MeterBar1.Position < MeterBar1.Range Then MeterBar1.Position = MeterBar1.Position + 1 Else MeterBar1.Position = 0
If MeterBar2.Position < MeterBar2.Range Then MeterBar2.Position = MeterBar2.Position + 1 Else MeterBar2.Position = 0
If MeterBar3.Position < MeterBar3.Range Then MeterBar3.Position = MeterBar3.Position + 1 Else MeterBar3.Position = 0
If MeterBar4.Position < MeterBar4.Range Then MeterBar4.Position = MeterBar4.Position + 1 Else MeterBar4.Position = 0
End Sub